package com.andy.note.main.model.proxy.demo1;

/*
 *静态代理
 *Created by William on 2018/8/12 0012
 */
public class ProxyHello implements IHello {
    private IHello iHello;
    public ProxyHello(IHello iHello){
//        super();
        this.iHello = iHello;
    }
    @Override
    public void sayHello(String str) {
        System.out.println("=== start ===");
        iHello.sayHello(str);
        System.out.println("=== end ===");
    }
}